package com.sino.dataworks.util;

import cn.hutool.setting.dialect.Props;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.odps.data.Record;
import com.aliyuncs.dataworks_public.model.v20200518.ListDataSourcesResponse;
import com.sino.dataworks.dto.InstanceEntityDto;
import com.sino.dataworks.dto.PhoneWarnDto;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

public class JobVarUtil {
    public static Boolean isFirstWarning=true;
    public static Boolean isNeedWarning=false;
    public static Date begin=null;
    public static  Map<String, InstanceEntityDto> hasRerunMap=new HashMap<>();
    public static  Map<String,InstanceEntityDto> hasWarningMap=new HashMap<>();
    public static  Map<String,Integer> retryMap=new HashMap<>();
    public static Date firstNoRuningTime=null;
    public static Integer totalCount=0;
    public static Map<String,String> instanceMap=new HashMap<>();
    public  static Map<String, JSONObject> instanceSyncTaskMap=new HashMap<>();
    public static List<Record> mailRecords=new ArrayList<>();
    public static Integer instaceListTotalCount=0;
    public static Integer nodeListTotalCount=0;
    public static int retryCount=0;
    public static int notRunNum=1400;
    public static Map<String, PhoneWarnDto> phoneWarnDtoMap=new HashMap<>();
    public static Date oracleBegin=null;
    public static List<String> applyList=new ArrayList<>();
    public static int retryNum=5;
    public static Boolean isAllCheck=false;
    public static Map<String,String> tableFullMap=new HashMap<>();
    public static Map<String,JSONObject> datasourceMap=new HashMap<>();
    public static Integer databaseTotalCount=0;
    public static Map<String, ListDataSourcesResponse.Data.DataSourcesItem> datasources=new HashMap<>();
    public static Map<String,String> checkFile=new HashMap<>();
    public static Props config=null;
    public static Map<String,List<Record>> errorTask=new ConcurrentHashMap<>();
    public static Integer warnPeriod=30;
    public static Date warningDate=null;
}
